﻿//  Copyright (c) 2009 Ray Liang (http://www.dotnetage.com)
//  Dual licensed under the MIT and GPL licenses:
//  http://www.opensource.org/licenses/mit-license.php
//  http://www.gnu.org/licenses/gpl.html
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNA.Utility
{
    public class XmlDeserializeException:Exception
    {
        string _file = "";
        string _type = "";

        public XmlDeserializeException(string fileName, string typeString)
        {
            _file = fileName;
            _type = typeString;
        }

        public override string Message
        {
            get
            {
                return "Deserialize object from \""+_file+"\" as type \""+_type+"\" fail.Mybe the xml document no correct.";
            }
        }
    }
}
